﻿using Ivi.Visa.Interop;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Test_Libscvs.Instrument;
using libScvs;

namespace Test_Libscvs
{
    public class Program
    {
        static void Main(string[] args) 
        {
            libScvs.LibScvs libScvs = new libScvs.LibScvs();

            Console.WriteLine("Hello, World!");
            double a = scpi.my_add(4.3, 3.5);
            Console.WriteLine(a);
            Console.WriteLine("finish.");

            //initial connection
            Console.WriteLine("Open load.");
            string inf = scpi.load_init("ASRL5::INSTR", false, false);
            Console.WriteLine(inf);

            //close connection
            scpi.load_cls();
            Console.WriteLine("close load.");

            Console.ReadLine();
            

        }
    }
}
